<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Stat process</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.win32-ps-stat-proc" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">win32_ps_stat_proc</h1>
  <p class="verinfo">(PECL win32ps &gt;= 1.0.1)</p><p class="refpurpose"><span class="refname">win32_ps_stat_proc</span> &mdash; <span class="dc-title">Stat process</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.win32-ps-stat-proc-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>win32_ps_stat_proc</strong></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$pid</code><span class="initializer"> = 0</span></span>
  ] ) : <span class="type">array</span></div>

  <p class="para rdfs-comment">
   Retrieves statistics about the process with the process id <code class="parameter">pid</code>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.win32-ps-stat-proc-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">pid</code></dt>

     <dd>

      <p class="para">
       The process id of the process to stat.  If omitted, the id of the current process.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.win32-ps-stat-proc-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>FALSE</code></strong> on failure, or an array consisting of the
   following information on success:
  </p>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">pid</code></dt>

     <dd>

      <p class="para">
       The process id.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">exe</code></dt>

     <dd>

      <p class="para">
       The path to the executable image.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">mem</code></dt>

     <dd>

      <p class="para">
       An array containing information about the following memory utilization indicators:
       <code class="parameter">page_fault_count</code>,
       <code class="parameter">peak_working_set_size</code>,
       <code class="parameter">working_set_size</code>,
       <code class="parameter">quota_peak_paged_pool_usage</code>,
       <code class="parameter">quota_paged_pool_usage</code>,
       <code class="parameter">quota_peak_non_paged_pool_usage</code>,
       <code class="parameter">quota_non_paged_pool_usage</code>,
       <code class="parameter">pagefile_usage</code> and
       <code class="parameter">peak_pagefile_usage</code>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">tms</code></dt>

     <dd>

      <p class="para">
       An array containing information about the following CPU time utilization indicators:
       <code class="parameter">created</code>, <code class="parameter">kernel</code> and <code class="parameter">user</code>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.win32-ps-stat-proc-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="win32_ps_list_procs.html" class="function" rel="rdfs-seeAlso">win32_ps_list_procs()</a> - List running processes</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>